package com.tidemark.ui.console;

import java.util.Date;

import com.tidemark.DefaultDataModel;
import com.tidemark.Stock;

public class ConsoleDataModel extends DefaultDataModel{

	@Override
	public synchronized void add(Stock stock) {
		//v.add(code + " " + name + " " + comments);
		System.out.println(stock.getCode() + " " + stock.getName() + " " + stock.getComments() + ", ");
	}

	@Override	
	public synchronized void removeAll(){
		System.out.println();
		System.out.println();
		System.out.println("=========================================================");
		System.out.println(new Date());
		System.out.println("=========================================================");
	}
}
